# -*- coding: utf-8 -*-

if __name__ == '__main__':
    import time
    
    # n = 200
    # for k in range(n):
    #     pstr = '{}/{}, {}%'.format(k+1, n, round(100*(k+1)/n, 2))
    #     print('\r', pstr, end='', flush=True)
    #     time.sleep(0.000001)
        
        
    n = 100
    k = 0
    for i in range(10):
        for j in range(10):
            k += 1
            pstr = '{}/{}: {:.2f}% ......'.format(
                    k, n, 100*k/n)
            # pstr = '{}/{}: {:.2f}% ......'.format(
            #         10*i+j+1, n, 100*(10*i+j+1)/n)
            print('\r', pstr, end='', flush=True)
            time.sleep(0.01)
        
    
